# =============================================================================
set(LIBOPENXLSX_ROOT ${COMMON_THIRD_LIB}/OpenXLSX)

macro(use_xlsx ag_project_name)
  target_compile_definitions(${ag_project_name} PRIVATE USE_LIB_LIBOPENXLSX)
  
  target_include_directories(${ag_project_name} PRIVATE ${LIBOPENXLSX_ROOT}/OpenXLSX)

  target_link_directories(${ag_project_name} PRIVATE ${LIBOPENXLSX_ROOT}/$<CONFIG>)
  target_link_libraries(${ag_project_name} PRIVATE OpenXLSX$<$<CONFIG:Debug>:d>)
endmacro(use_xlsx)